Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
; | |
(function main() { | |
let truePlayRate = 1.0; | |
let trueCurrentTime = NaN; | |
const speedList = [0.8, 1.0, 1.25, 1.5, 2.0]; | |
const isFrefox = navigator.userAgent.indexOf("Firefox") === -1 ? false : true; | |
const isEdge = navigator.userAgent.indexOf("EdgA") === -1 ? false : true; // yeah it's "EdgA" | |
let player; | |
const playerSize = { width: NaN, height: NaN }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
extension UIStackView { | |
func removeAllArrangedSubviews() { | |
let removedSubviews = arrangedSubviews.reduce([]) { (allSubviews, subview) -> [UIView] in | |
self.removeArrangedSubview(subview) | |
return allSubviews + [subview] | |
} |
this has been rewritten yet again as most workarounds aren't required anymore since wine 3+
example video of the final result: https://www.youtube.com/watch?v=zkqzQoeOGfU
with touchscreen: https://www.youtube.com/watch?v=GcIrlorWmaQ
performance is indistinguishable from windows. there might be a very slight ~25ms sound latency which is easily compensated with +25 local offset
tested on
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xmltodict | |
import json | |
import numpy as np | |
import pandas as pd | |
#Parse XML to dictionary | |
with open('export.xml') as f: | |
health = xmltodict.parse(f.read()) | |
#Extract desired data and turn into a Data Frame |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const WORDLIST = ["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse", | |
"access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act", | |
"action","actor","actress","actual","adapt","add","addict","address","adjust","admit", | |
"adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent", | |
"agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert", | |
"alien","all","alley","allow","almost","alone","alpha","already","also","alter", | |
"always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger", | |
"angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique", | |
"anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic", | |
"area","arena","argue","arm","armed","armor","army","around","arrange","arrest", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id | quality | level | previewlevel | levelcurve | tag | tagpriority | name | namepriority | |
---|---|---|---|---|---|---|---|---|---|
1 | 20 | Heroic | 0 | ||||||
2 | 4 | Pristine | 10 | ||||||
3 | of Power | 0 | |||||||
15 | 4 | 20 | |||||||
17 | |||||||||
18 | |||||||||
19 | of the Fireflash | 0 | |||||||
20 | of the Fireflash | 0 | |||||||
21 | of the Fireflash | 0 |
NewerOlder